package com.lson.bus;

import lombok.Data;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

@Data
public class ProductEvent extends RemoteApplicationEvent {
    public ProductEvent(){

    }
    private String action;
    private String itemCode;
    public ProductEvent(Object source, String originService, String destinationService, String action, String itemCode){
        super(source, originService, destinationService);
        this.action = action;
        this.itemCode = itemCode;
    }

}
